useradd redas

chown -R redas:redas /usr/local/redas/redas_spider_man_bus

cat << EOF >/usr/lib/systemd/system/redas@.service
[Unit]
Description=redas爬虫服务
After=network.target

[Service]
Type=simple
User=redas
Environment="SPPM_ENV=/usr/local/redas/redas_spider_man_bus/configs/.sppm_env_%i"
ExecStart=/usr/bin/python3 /usr/local/redas/redas_spider_man_bus/%i_application.py --start
ExecStop=/usr/bin/python3 /usr/local/redas/redas_spider_man_bus/%i_application.py --stop
ExecReload=/usr/bin/python3 /usr/local/redas/redas_spider_man_bus/%i_application.py --reload


[Install]
WantedBy=multi-user.target
EOF
